function processQuiz()
{
	var nCounter = 0;
	
	var nCorrect = 0;
	var aRight = new Array();
	
	while( document.forms.quiz[ 'q' + nCounter ] != undefined )
	{
		var nIndex = 0;
		for( nIndex = 0; nIndex < document.forms.quiz[ 'q' + nCounter ].length ; nIndex = nIndex + 1 )
		{
			// disable everything
			document.forms.quiz[ 'q' + nCounter ][ nIndex ].disabled = 'true';
			
			if( document.forms.quiz[ 'q' + nCounter ][ nIndex ].checked )
			{
				if( document.forms.quiz[ 'q' + nCounter ][ nIndex ].value == '1' )
				{
					nCorrect++;
				}
				else
				{
					document.getElementById( 'question-title' + nCounter ).style.backgroundColor = '#ffcccc';	
				}				
			}				 
			else
			{
				if( document.forms.quiz[ 'q' + nCounter ][ nIndex ].value == '1' )
				{
					document.getElementById( 'question-title' + nCounter ).style.backgroundColor = '#ffcccc';	
				}
			}
		}
		nCounter++;
	}	
	
	
	// disable everything
	document.forms.quiz.submit.disabled = 'true';
	document.forms.quiz.reset.disabled = 'true';

	
	//alert( aRight + '   The number of questions is: ' + nQuestions + ' and you got ' + nCorrect + ' correct!' );
	
	var response = 'You got ' + nCorrect + ' out of ' + nCounter + ' questions correct. ';
	var nScore = ( nCorrect / nCounter ); 
	if( nScore >= .80 )
	{
		response = response + 'Congratulations!  You passed!  Your progress has been recorded. ' +
		'<br/><br/>The questions you answered incorrectly are highlighted in red.  ';
		
		// set score
		parent.setScore( nScore );
	}
	else
	{	
		response = response + 'You did not pass.  The questions you answered ' + 
		'incorrectly are highlighted in red.  After you have finished reviewing your quiz, click this ' +
		'<a href="javascript:history.go(0)">link to view the module again</a> before taking the quiz again.<br/><br/>';
	}

	document.getElementById( 'quiz-feedback-message' ).innerHTML = response;
		
	document.getElementById( 'quiz-feedback' ).display = 'block';
}
